package com.sochinchou.res;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;

import com.sochinchou.res.components.MyActivity;
import com.sochinchou.res.components.MyWidgetProvider;




public class MainActivity extends Activity {

	private Context mContext;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_layout_main);
	
		mContext = this;

		//startActivity(new Intent(mContext, MyActivity.class));

		
		//setContentView(new MyCompoundView(this, "title", "message"));
//		final MyCompassView compassView = (MyCompassView)findViewById(R.id.compass);
//        new Thread(){
//        	private float angle = 0;
//        	
//			@Override
//			public void run() {
//				while(true){
//					compassView.setBearing(angle += 30);
//					compassView.postInvalidate();
//					try {
//						Thread.sleep(1000);
//					} catch (InterruptedException e) {
//						e.printStackTrace();
//					}
//				}
//			}       	
//        }.start();
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.menu, menu);
		return true;
	}

}
